DEFINITION MODULE DuTypefile;


(* Written by Greg Browne from ideas in duIII.c - many thanks to
     Chris Nicotra, Dave Jobusch, Ed Alford, and many others whose
     names I have not seen on the source files who have worked on
     the development and extension of that fine directory utility program.

   PURPOSE	A self-contained, IMPORTable pair of procedures to allow
		a screen display - or printer copy - in Hex or ASCII of
		any disk files.
   
   CHANGES	1/24/87		Built original.

									*)

(*COMMENTS*)

(* This module tries to open the DOSLibrary for use in case it is not open.
   IT DOES NOT CLOSE IT.  The user is left with that chore.		*)

(* All constants and variables are internal.  Nothing but two PROCEDURES
   are available to the user.						*)



PROCEDURE DisplayASCII(VAR filnam:ARRAY OF CHAR;ToScreen:BOOLEAN);
(*	Produces an ASCII dump of a file - either to the screen,
	 if ToScreen is TRUE, or to the PRT: device if ToScreen
	 is FALSE.  The filename is any literal or variable	*)

PROCEDURE DisplayHex(VAR filnam:ARRAY OF CHAR;ToScreen:BOOLEAN);
(*	Same stuff only in 'filezap' style hex dump format	*)


END DuTypefile.
